package com.shanyu.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.shanyu.dto.ClassificaDto;
import com.shanyu.eo.ClassificaEo;
import com.shanyu.service.IClassificaService;

@RestController
@RequestMapping(value = "/classifica")
public class ClassificaController {
	
	@Autowired
	private IClassificaService classificaService;

	@RequestMapping(value = "/list",method = RequestMethod.GET)
	public List<ClassificaEo> getClassificaList(){
		return classificaService.getClassificaList();
	}
	
	@RequestMapping(value = "/article/list",method = RequestMethod.GET)
	public List<ClassificaDto> getClassificaArticleList(){
		return classificaService.getClassificaArticle();
	}
	
}
